<center>
{if $error neq ''}
	<p class="error">{$error}</p>
{else}
<table class="basetable" align="center" width="100%" border="0" cellpadding="0" cellspacing="0">

	<thead>
		<tr>
			<th>{if $CURRENT_USER->groupid eq 'ADMIN'}{$lang.team}{/if}</th>
			<th>{$lang.totalfiles}</th>
			<th colspan="2">{$lang.todo}</th>
			<th colspan="2">{$lang.locked}</th>
			<th colspan="2">{$lang.chkpnd}</th>
			<th colspan="2">{$lang.proof}</th>
			<th colspan="2">{$lang.cmpnd}</th>
			<th colspan="2">{$lang.done}</th>
			<th>{$lang.totalstrings}</th>
			<th colspan="2">{$lang.totaltranslated}</th>
			<th colspan="2">{$lang.totalunstranslated}</th>
			<th colspan="2">{$lang.totalfuzzy}</th>			
		</tr>
	</thead>

	<tbody>
		{assign var="rowclass" value="uneven"}
		{foreach from=$teamstats item=row}
			<tr class="{$rowclass}">
				<td>{if $CURRENT_USER->groupid eq 'ADMIN'}{$row.team}{/if}</td>
				<td align="center">{$row.totalfiles}</td>
				<td align="center">{$row.todo}</td>
				<td align="center">{percentage total=$row.totalfiles value=$row.todo}%</td>
				<td align="center">{$row.locked}</td>
				<td align="center">{percentage total=$row.totalfiles value=$row.locked}%</td>
				<td align="center">{$row.chkpnd}</td>
				<td align="center">{percentage total=$row.totalfiles value=$row.chkpnd}%</td>
				<td align="center">{$row.proof}</td>
				<td align="center">{percentage total=$row.totalfiles value=$row.proof}%</td>
				<td align="center">{$row.cmpnd}</td>
				<td align="center">{percentage total=$row.totalfiles value=$row.cmpnd}%</td>
				<td align="center">{$row.done}</td>
				<td align="center">{percentage total=$row.totalfiles value=$row.done}%</td>
				<td align="center">{$row.totalstrings}</td>
				<td align="center">{$row.totaltranslated}</td>
				<td align="center">{percentage total=$row.totalstrings value=$row.totaltranslated}%</td>
				<td align="center">{$row.totalunstranslated}</td>
				<td align="center">{percentage total=$row.totalstrings value=$row.totalunstranslated}%</td>
				<td align="center">{$row.totalfuzzy}</td>
				<td align="center">{percentage total=$row.totalstrings value=$row.totalfuzzy}%</td>				
			</tr>
			{if $rowclass eq 'even'}
				{assign var="rowclass" value="uneven"}
			{else}
				{assign var="rowclass" value="even"}
			{/if}
		{/foreach}			

	</tbody>

</table>
{/if}
</center>